package org.jhulk.enums;

public class Orientation
{
    public static float NORTH = 0.0f;

    public static float SOUTH = 180.0f;

    public static float EAST = 90.0f;

    public static float WEST = 270.0f;

    public static float getOrientation(float dir)
    {
        if(Orientation.NORTH == Math.abs(dir)) return Orientation.NORTH;

        if(Orientation.SOUTH == Math.abs(dir)) return Orientation.SOUTH;

        if(Orientation.EAST == Math.abs(dir)) return Orientation.EAST;

        if(Orientation.WEST == Math.abs(dir)) return Orientation.WEST;

        return -1.0f;
    }
}
